package com.nulstudio.sppm.network;

import java.util.Objects;
public class CreateCommodityResponse {
    private final int id;

    public CreateCommodityResponse(int id) {
        this.id = id;
    }
    public CreateCommodityResponse() {
        this.id = 0;
    }

    public int getId() {
        return id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CreateCommodityResponse that = (CreateCommodityResponse) o;
        return id == that.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
